<template>
    <div class="event">
      <CommonForm :formData="selectedComponent.events" :formJson="formJson" />



    </div>
</template>

<script >
import { mapState } from "vuex"
import CommonForm from "../../../../common/CommonForm/index2"
import getAttrList from "./attr"

export default {
  data() {
    return {
      customFormJson: []
    }
  },
  computed: {
    ...mapState("lowCode", {
      selectedComponent: state => state.selectedComponent,
    }),
    formJson(){
      return getAttrList(this.selectedComponent.tag, this.$store.state.lowCode)
    }
  },
  components: {
    CommonForm
  }
}
</script>

<style lang="less" scoped>
  @import url("./index.less");
</style>
